<template>
	<view class="swiperBoxc">
		<u-swiper :list="swiperData" height="100%" autoplay circular></u-swiper>
	</view>
</template>

<script>
	import {
		Swiper
	} from '../../api/api';
	export default {
		data() {
			return {
				swiperData: [],
			}
		},
		mounted() {
			this.getSwiperData()
		},
		methods: {
			async getSwiperData() {
				let res = await Swiper()
				if (res.data.code == 1) {
					// console.log(res.data.data);
					res.data.data.map((item) => {
						this.swiperData.push(`https://api.jingkakeji.com/${item.image}`);
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.swiperBoxc {
		width: 100%;
		height: 100%;
	}
</style>